package com.wffz.service;

import com.wffz.dto.AwardDTO;
import com.wffz.po.Bet;
import com.wffz.po.ClientUser;
import com.wffz.po.Patch;
import com.wffz.vo.PrizesVO;

import java.util.List;

/**
 * @author sunlei
 * @Description PatchService
 * @date 2023/2/12 10:57
 **/
public interface PatchService {

    public boolean insertPatch(Patch patch);

    public boolean updatePatch(Patch patch);


    public boolean saveDayPatch(String dayTime, String type);


    public Integer getPatchCountByDay(String dayTime, String type);

    /**
     * @Description: [获取当前当天数据]
     * @Title: getCurrentPeriod
     * @Author: SUNLEI
     * @Date: 2023-02-12
     * @Param:
     * @Return: com.wffz.po.Patch
     * @Throws:
     */
    public Patch getCurrentPeriod(String type);

    // 根据期数获取
    public Patch getPatchByNum(String patchNum, String type);

    /**
     * @Description: [开奖] 
     * @Title: awardColor
     * @Author: SUNLEI
     * @Date: 2023-03-03
     * @Param: patchNum 
     * @Return: java.lang.String
     * @Throws: 
     */
    public AwardDTO awardColor(String patchNum,String patchType);

    // 开奖
    public PrizesVO PrizesResult(Bet bet);


    public List<Patch> queryAwardPatch(String type);
    public List<Patch> queryAwardPatchAll(String type);


}
